package com.mty.service.impl;

import com.mty.dao.ProductDao;
import com.mty.entity.Product;
import com.mty.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：Teacher马（2508531326@qq.com）
 * @date ：Created in 2022/11/17 17:54
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class ProductImpl implements ProductService {
    @Autowired
    private ProductDao productDao;
    @Override
    public Product findId(Long pid) {
        return productDao.selectById(pid);
    }
}
